/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.sarco.bwi.test;

import com.sarco.bwi.lib.*;
import java.io.IOException;

/**
 *
 * @author iktsup
 */
public class Main {

    private static String blenderPath;
    private static String file;
    private static int startFrame;
    private static int endFrame;
    private static String path;
    private static String format;
    private static int addFileExt;
    
    public static void main(String[] args) throws IOException, InterruptedException {
        Config conf = new Config();
        conf.loadConfig("default.config");
        System.out.println("Port is: " + conf.port);
        System.out.println("Start Frame: " + conf.startFrame);
        System.out.println("End Frame: " + conf.endFrame);
        for (int i = 0; i < conf.nodes.length; i++) {
            System.out.println(conf.nodes[i]);
        }
        Master master = new Master(conf);

        Main.blenderPath    = conf.blenderPath;
        Main.file           = conf.blend;
        Main.startFrame     = conf.startFrame;
        Main.endFrame       = conf.endFrame;
        Main.path           = conf.ouput;
        Main.format         = conf.format;
        Main.addFileExt     = 1;
    }
}
